﻿using System.Collections.Generic;
using System.Net.Http;

namespace DoNet.ApiHttpClient.Amap
{
    /// <summary>
    /// 高德地图HttpClient服务
    /// </summary>
    public class AmapService : BaseHttpClient
    {
        /// <summary>
        /// 接口域名列表
        /// 第一个为通用域名，其他为容灾域名
        /// 只读属性，不允许直接设置值，但可以通过方法修改或访问它。
        /// </summary>
        public override Dictionary<string, string> ApiDomains { set; get; } = AmapConst.ApiDomains;
        /// <summary>
        /// HttpClient 名称
        /// </summary>
        public override string HttpClientName { set; get; } = AmapConst.HttpClientName;

        /// <summary>
        /// 
        /// </summary>
        /// <param name="httpClientFactory"></param>
        /// <param name="index"></param>
        public AmapService(IHttpClientFactory httpClientFactory, int index = -1) : base(httpClientFactory, AmapConst.IsHttps, index)
        {

        }
    }
}
